// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { XHeader, Cell, Group, Popup, Checklist, Datetime, XButton, Icon, Toast, LoadingPlugin, ToastPlugin } from 'vux'

Vue.component('x-header', XHeader)
Vue.component('cell', Cell)
Vue.component('group', Group)
Vue.component('popup', Popup)
Vue.component('Checklist', Checklist)
Vue.component('datetime', Datetime)
Vue.component('x-button', XButton)
Vue.component('icon', Icon)
Vue.component('toast', Toast)
Vue.use(LoadingPlugin)
Vue.use(ToastPlugin)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
